package com.shiwaixiangcun.monitor.service;

import com.shiwaixiangcun.core.plugin.dto.MonkeyDto;
import com.shiwaixiangcun.core.service.BaseService;
import com.shiwaixiangcun.monitor.domain.User;
import com.shiwaixiangcun.monitor.domain.WorkOrder;
import com.shiwaixiangcun.monitor.domain.WorkOrderQualityRecord;
import com.shiwaixiangcun.monitor.dto.WorkOrderDetailDto;
import com.shiwaixiangcun.monitor.dto.WorkOrderQualityRecordDto;
import com.shiwaixiangcun.monitor.enums.QualityStatus;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by Administrator on 2017/11/23.
 */
public interface WorkOrderQualityRecordService extends BaseService<WorkOrderQualityRecord, Long> {

    Page<WorkOrderQualityRecordDto> recordList(Pageable pageable, MonkeyDto monkeyDto);

    void judge(Long qualityRecordId, QualityStatus status, String reason);

    WorkOrderQualityRecord createQualityRecord(WorkOrder workOrder, User user);

    WorkOrderDetailDto getDetail(Long id);


}
